<?php
namespace Adminx\Controller;

class SettingController extends AdminController {
    public function index(){
		$this->display();
	}
	
    #保存配置
    public function insert(){
    	if (!IS_POST) {
            E('ERROR');
        }
    	$file=I('post.files');
		unset($_POST['files']);
		
		if($this->update_config($_POST,CONF_PATH.$file)){
		  	$this->success('操作成功');
		}else{
			$this->error('操作失败');
		}
    }
}